<%@page import="java.nio.file.attribute.UserDefinedFileAttributeView"%>
<html>
	<head>
		<meta name="layout" content="main"/>
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'bootstrap.css')}" type="text/css"/> 
		<title>uTalk - Home</title>
	</head>
	<body>
	<ul class="nav nav-pills">
		<li><a href="${createLink(controller:'user', action:'home')}">Home</a></li>
  		<li><a href="${createLink(controller:'user', action:'profile')}">Profile</a></li>
  		<li><a href="${createLink(controller:'user', action:'message')}">Messages</a></li>		
	</ul>
	
	
	<h3>${flash.type}  <span class="label label-default"></span></h3><br/><br/>
		<table class="table table-striped">
			<g:each var="user" in="${flash.result}">
				<span class="label label-info"><g:link controller="user" action="profileDetails" params="${[userDetails : user?.pseudo]}">${user?.pseudo}</g:link></span>
				<br/>
				<!--  Mettre un bouton pour s'abonner -->
			</g:each>
		</table>
	</body>
</html>